$(function() {

	// 重置密码
	$("a[name='resetPwd']").click(function() {
		var uId = $(this).attr("value");
		$.ajax({
			type : "post",
			url : "/tenement/resetUserPwd.action",
			data : uId,
			contentType : "application/json;charset=utf-8",
			success : function(msg) {
				alert("【重置密码成功】" + msg);
			}
		})
		location.href = "toUserManageHtml.action";
	})
	// 删除用户
	$("a[name='deleteUser']").click(function() {
		var uId = $(this).attr("value");
		$.ajax({
			type : "post",
			url : "/tenement/deleteUser.action",
			data : uId,
			contentType : "application/json;charset=utf-8",
			success : function(msg) {
				alert("【删除管理员】" + msg);
			}
		})
		location.href = "toUserManageHtml.action";
	})

})